home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / ARCHIVE / V12N10.ZIP;1 / INPUT.ZIP / FILEBYTE.BAT next >
Encoding:
DOS Batch File  |  1992-09-21  |  399 b   |  14 lines

  1. @ECHO OFF
  2. REM FILEBYTE.BAT - Pass a file specification and this batch
  3. REM   file will tell you how many bytes it occupies.
  4. SET filebytes=0
  5. IF '%1'=='' GOTO Report
  6. IF NOT EXIST %1 GOTO Report
  7. DIR %1 | FIND "file(s)" | INP CALL $FILEBYT.BAT>NUL
  8. ECHO SET filebytes=%%3>$FILEBYT.BAT
  9. CALL TEMP.BAT
  10. DEL  TEMP.BAT
  11. DEL  $FILEBYT.BAT
  12. :===== Report =====
  13. ECHO %filebytes% bytes occupied by "%1"
  14.